package online.inote.common.data.valid;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import online.inote.common.data.validator.ByteLengthValidator;

/**
 * <p>
 * Desc: 
 * </p>
 *
 * @author XQF SUI
 * @created 2018年9月4日 下午11:23:07
 * @version 1.0
 */
@Constraint(validatedBy = ByteLengthValidator.class) //具体的实现  
@Target( { java.lang.annotation.ElementType.METHOD,  
    java.lang.annotation.ElementType.FIELD })  
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)  
@Documented 
public @interface ByteLength {

	public String message();
	
	public int min() default 0;
	
	public int max();
	
	public Class<?>[] groups() default {};
	
	Class<? extends Payload>[] payload() default {};
}
